<%@tag pageEncoding="UTF-8" description="输出头部文件" body-content="scriptless" import="ajaxjs.config.*"%>
<%@tag trimDirectiveWhitespaces="true"%>
<%@attribute name="title" required="false" description="其他标题"%> 
<%@attribute name="extrTitle" required="false" description="在读取结构标题之外，再补充的标题"%> 
<%@attribute name="lessFile" required="false" description="指定 LESS 样式文件"%> 
<%@attribute name="configObj" required="false" type="java.util.Map" description="对于不初次启动的APP，需要传入具体的配置。"%> 
<%
	if(Application.isConfig_Ready){// 表示不是 simple load
		Node node = new Node(request);
		node.getNode(true);
		node.getNode(false);
	}else{
		
	}

	// 页面控制
	Page page = new Page(request);
 
	// 为 tag files 而设
	//jspContext.setAttribute("viewController", request.getAttribute("viewController")); 
%>
	<head>
		<meta charset="utf-8" />
	    <meta name="keywords"    content="${config.site_keywords}" />
	    <meta name="description" content="${config.site_description}" />
	    <meta name="author"      content="frank chueng" />
    	<title><%
    		if(title != null)out.print(title);
    		else{
    		%>${config.site_titlePrefix} ${node.name} ${extrTitle}
    	<%}%></title>
	<%-- 跳转 <meta http-equiv="refresh" content="3;url=http://bing.com" /> --%>
		<noscript>如要享受本网站服务，请您不要禁用  JavaScript 支持。</noscript>
	<%--作用是取出部署的应用程序名，这样不管如何部署，所用路径都是正确的。 --%>
		<link rel="icon"		  type="image/x-icon" href="${pageContext.request.contextPath}/asset/icons/favicon.ico" />
		<link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/asset/icons/favicon.ico" />
	    
	    <style type="text/css">
			body,dl,dt,dd,ul,li,pre,form,fieldset,input,p,blockquote,th,td,h1,h2,h3,h4,h5{margin:0;padding:0;}
			img{border:0;vertical-align:top}ul li{list-style-type:none}.hide{display:none}
			<%-- 字体 --%>
			body{
				-webkit-font-smoothing:antialiased;
				font-family: "Microsoft YaHei","ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Hiragino Sans GB","Hiragino Sans GB W3",Arial;
			}
		</style>
<%
	// 宽度 320px
	if(page.isPhone()){%>	    
		<meta name="viewport" content="width=320,user-scalable=0,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0" />
<%	}
	// 兼容旧版 ie
	if(page.isOldIE()){
		response.setHeader("X-UA-Compatible","IE=EmulateIE8");
%>
		<meta http-equiv="X-UA-Compatible" content="edge" />
		<%@taglib prefix="html_ie6"	tagdir="/WEB-INF/tags/common/html"%>
		<html_ie6:noIE6 staticRoot="${WebsitePath.StaticRoot}/bigfoot" />
<%
	}
%>	
	<%-- 通过百度手机打开网页时，百度可能会对你的网页进行转码，脱下你的衣服，往你的身上贴狗皮膏药的广告 --%>
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<%-- 优先使用 IE 最新版本和 Chrome --%>
	<meta http-equiv="X-UA-Compatible" content="edge,chrome=1" />
	<%-- 360 使用Google Chrome Frame --%>
	<meta name="renderer" content="webkit" />
	
	<%-- 定义网页搜索引擎索引方式，robotterms 是一组使用英文逗号「,」分割的值，通常有如下几种取值：none，noindex，nofollow，all，index和follow --%>
	<meta name="robots" content="index,follow" />
	
	<%if(lessFile != null){ %>
		<link rel="stylesheet" type="text/css" href="<%=page.getCssUrl(lessFile)%>" />
	<%}else{%>
		<link rel="stylesheet" type="text/css" href="${pageInfo.cssUrl}" />
	<%}%>
		
    	<script src="${pageInfo.jsSrc}/bigfoot/libs/sea.js"></script>
        <script>
            seajs.config({
                paths: {
                    'bigfoot': 	'${pageInfo.jsSrc}/bigfoot/src',
                    'libs': 	'${pageInfo.jsSrc}/bigfoot/libs'
                },
                preload: ['bigfoot/dhtml/prototype', 'bigfoot/dhtml/patch', 'bigfoot/moblie'],
                debug: <%=Application.isDebug ? "true" : "false"%>
            });
        </script>
        <jsp:doBody />
	</head>